package com.work.keep.datas;

import java.util.List;

/**
 * Created by dllo on 16/1/21.
 */
public class RecommendData {

    /**
     * ok : true
     * data : {"workouts":[{"_id":"567cc1f5d1d20e1f26f2a22c","name":"跑步机有氧健步走","difficulty":1,"pioneer":14772,"trainingpoints":[{"_id":"54826e417fb786000069ad81","name":"全身","created":"2014-12-06T02:47:29.000Z","id":"54826e417fb786000069ad81"}],"equipments":[{"_id":"56763ab54f1ca91bf918ba4a","name":"跑步机","created":"2015-12-20T05:20:53.000Z","id":"56763ab54f1ca91bf918ba4a"}],"tags":["new"],"duration":35},{"_id":"565bfb0f2f5f272b8a7880eb","name":"俯卧撑入门","difficulty":1,"pioneer":570589,"trainingpoints":[{"_id":"54826e417fb786000069ad82","name":"胸部","created":"2014-12-06T02:47:29.000Z","id":"54826e417fb786000069ad82"},{"_id":"54826e417fb786000069ad88","name":"手臂","created":"2014-12-06T02:47:29.000Z","id":"54826e417fb786000069ad88"}],"equipments":[{"_id":"54826e417fb786000069ad59","name":"无器械","created":"2014-12-06T02:47:29.000Z","id":"54826e417fb786000069ad59"}],"tags":[],"duration":13},{"_id":"565bdd6f9c8ade2885c9b976","name":"深蹲入门","difficulty":1,"pioneer":346642,"trainingpoints":[{"_id":"54826e417fb786000069ad85","name":"腿部"}],"equipments":[{"_id":"54826e417fb786000069ad59","name":"无器械"}],"tags":[],"duration":11},{"_id":"564025a15372f4dfc94dd36e","name":"办公室肩颈放松","difficulty":1,"pioneer":163781,"trainingpoints":[{"_id":"54826e417fb786000069ad83","name":"肩部"},{"_id":"55cb1b72bfbf17f934371eba","name":"颈部"}],"equipments":[{"_id":"54826e417fb786000069ad59","name":"无器械"}],"tags":[],"duration":10},{"_id":"5615119ff249f870d78d996b","name":"泡沫轴全身按摩","difficulty":1,"pioneer":217107,"trainingpoints":[{"_id":"54826e417fb786000069ad81","name":"全身","created":"2014-12-06T02:47:29.000Z","id":"54826e417fb786000069ad81"}],"equipments":[{"_id":"5602adb357186c6f44da8ace","name":"泡沫轴","created":"2015-09-23T13:48:35.000Z","id":"5602adb357186c6f44da8ace"}],"tags":[],"duration":10}],"plans":[{"_id":"54afac39e06249cb13904c1e","name":"HIIT适应性训练","difficulty":1,"pioneer":3128298,"trainingpoints":[{"_id":"54826e417fb786000069ad81","name":"全身","created":"2014-12-06T02:47:29.000Z","id":"54826e417fb786000069ad81"}],"equipments":[{"_id":"54826e417fb786000069ad59","name":"无器械","created":"2014-12-06T02:47:29.000Z","id":"54826e417fb786000069ad59"}],"tags":[],"days":10,"picture":"https://dn-keep.qbox.me/misc/2015/10/20/17/542129df26400000.jpg"},{"_id":"54afac5de06249cb13904c29","name":"驼背改善","difficulty":1,"pioneer":1964387,"trainingpoints":[{"_id":"54826e417fb786000069ad84","name":"背部","created":"2014-12-06T02:47:29.000Z","id":"54826e417fb786000069ad84"}],"equipments":[{"_id":"54826e417fb786000069ad59","name":"无器械","created":"2014-12-06T02:47:29.000Z","id":"54826e417fb786000069ad59"}],"tags":[],"days":7,"picture":"https://dn-keep.qbox.me/misc/2015/10/20/17/54212a4cfc000000.jpg"},{"_id":"552b4251bdb3c8a420b4f7a1","name":"零基础适应性训练","difficulty":1,"pioneer":4114407,"trainingpoints":[{"_id":"54826e417fb786000069ad81","name":"全身","created":"2014-12-06T02:47:29.000Z","id":"54826e417fb786000069ad81"}],"equipments":[{"_id":"54826e417fb786000069ad59","name":"无器械","created":"2014-12-06T02:47:29.000Z","id":"54826e417fb786000069ad59"}],"tags":["new"],"days":8,"picture":"https://dn-keep.qbox.me/misc/2015/10/20/17/54212a5df9000000.jpg"}]}
     * errorCode : 0
     * now : 2016-01-21T07:41:08.174Z
     * version : 1.0.0
     */

    private boolean ok;
    private DataEntity data;
    private int errorCode;
    private String now;
    private String version;

    public void setOk(boolean ok) {
        this.ok = ok;
    }

    public void setData(DataEntity data) {
        this.data = data;
    }

    public void setErrorCode(int errorCode) {
        this.errorCode = errorCode;
    }

    public void setNow(String now) {
        this.now = now;
    }

    public void setVersion(String version) {
        this.version = version;
    }

    public boolean isOk() {
        return ok;
    }

    public DataEntity getData() {
        return data;
    }

    public int getErrorCode() {
        return errorCode;
    }

    public String getNow() {
        return now;
    }

    public String getVersion() {
        return version;
    }

    public class DataEntity {
        /**
         * _id : 567cc1f5d1d20e1f26f2a22c
         * name : 跑步机有氧健步走
         * difficulty : 1
         * pioneer : 14772
         * trainingpoints : [{"_id":"54826e417fb786000069ad81","name":"全身","created":"2014-12-06T02:47:29.000Z","id":"54826e417fb786000069ad81"}]
         * equipments : [{"_id":"56763ab54f1ca91bf918ba4a","name":"跑步机","created":"2015-12-20T05:20:53.000Z","id":"56763ab54f1ca91bf918ba4a"}]
         * tags : ["new"]
         * duration : 35
         */

        private List<WorkoutsEntity> workouts;
        /**
         * _id : 54afac39e06249cb13904c1e
         * name : HIIT适应性训练
         * difficulty : 1
         * pioneer : 3128298
         * trainingpoints : [{"_id":"54826e417fb786000069ad81","name":"全身","created":"2014-12-06T02:47:29.000Z","id":"54826e417fb786000069ad81"}]
         * equipments : [{"_id":"54826e417fb786000069ad59","name":"无器械","created":"2014-12-06T02:47:29.000Z","id":"54826e417fb786000069ad59"}]
         * tags : []
         * days : 10
         * picture : https://dn-keep.qbox.me/misc/2015/10/20/17/542129df26400000.jpg
         */

        private List<PlansEntity> plans;

        public void setWorkouts(List<WorkoutsEntity> workouts) {
            this.workouts = workouts;
        }

        public void setPlans(List<PlansEntity> plans) {
            this.plans = plans;
        }

        public List<WorkoutsEntity> getWorkouts() {
            return workouts;
        }

        public List<PlansEntity> getPlans() {
            return plans;
        }

        public class WorkoutsEntity {
            private String _id;
            private String name;
            private int difficulty;
            private int pioneer;
            private int duration;
            /**
             * _id : 54826e417fb786000069ad81
             * name : 全身
             * created : 2014-12-06T02:47:29.000Z
             * id : 54826e417fb786000069ad81
             */

            private List<TrainingpointsEntity> trainingpoints;
            /**
             * _id : 56763ab54f1ca91bf918ba4a
             * name : 跑步机
             * created : 2015-12-20T05:20:53.000Z
             * id : 56763ab54f1ca91bf918ba4a
             */

            private List<EquipmentsEntity> equipments;
            private List<String> tags;

            public void set_id(String _id) {
                this._id = _id;
            }

            public void setName(String name) {
                this.name = name;
            }

            public void setDifficulty(int difficulty) {
                this.difficulty = difficulty;
            }

            public void setPioneer(int pioneer) {
                this.pioneer = pioneer;
            }

            public void setDuration(int duration) {
                this.duration = duration;
            }

            public void setTrainingpoints(List<TrainingpointsEntity> trainingpoints) {
                this.trainingpoints = trainingpoints;
            }

            public void setEquipments(List<EquipmentsEntity> equipments) {
                this.equipments = equipments;
            }

            public void setTags(List<String> tags) {
                this.tags = tags;
            }

            public String get_id() {
                return _id;
            }

            public String getName() {
                return name;
            }

            public int getDifficulty() {
                return difficulty;
            }

            public int getPioneer() {
                return pioneer;
            }

            public int getDuration() {
                return duration;
            }

            public List<TrainingpointsEntity> getTrainingpoints() {
                return trainingpoints;
            }

            public List<EquipmentsEntity> getEquipments() {
                return equipments;
            }

            public List<String> getTags() {
                return tags;
            }

            public class TrainingpointsEntity {
                private String _id;
                private String name;
                private String created;
                private String id;

                public void set_id(String _id) {
                    this._id = _id;
                }

                public void setName(String name) {
                    this.name = name;
                }

                public void setCreated(String created) {
                    this.created = created;
                }

                public void setId(String id) {
                    this.id = id;
                }

                public String get_id() {
                    return _id;
                }

                public String getName() {
                    return name;
                }

                public String getCreated() {
                    return created;
                }

                public String getId() {
                    return id;
                }
            }

            public class EquipmentsEntity {
                private String _id;
                private String name;
                private String created;
                private String id;

                public void set_id(String _id) {
                    this._id = _id;
                }

                public void setName(String name) {
                    this.name = name;
                }

                public void setCreated(String created) {
                    this.created = created;
                }

                public void setId(String id) {
                    this.id = id;
                }

                public String get_id() {
                    return _id;
                }

                public String getName() {
                    return name;
                }

                public String getCreated() {
                    return created;
                }

                public String getId() {
                    return id;
                }
            }
        }

        public class PlansEntity {
            private String _id;
            private String name;
            private int difficulty;
            private int pioneer;
            private int days;
            private String picture;
            /**
             * _id : 54826e417fb786000069ad81
             * name : 全身
             * created : 2014-12-06T02:47:29.000Z
             * id : 54826e417fb786000069ad81
             */

            private List<TrainingpointsEntity> trainingpoints;
            /**
             * _id : 54826e417fb786000069ad59
             * name : 无器械
             * created : 2014-12-06T02:47:29.000Z
             * id : 54826e417fb786000069ad59
             */

            private List<EquipmentsEntity> equipments;
            private List<?> tags;

            public void set_id(String _id) {
                this._id = _id;
            }

            public void setName(String name) {
                this.name = name;
            }

            public void setDifficulty(int difficulty) {
                this.difficulty = difficulty;
            }

            public void setPioneer(int pioneer) {
                this.pioneer = pioneer;
            }

            public void setDays(int days) {
                this.days = days;
            }

            public void setPicture(String picture) {
                this.picture = picture;
            }

            public void setTrainingpoints(List<TrainingpointsEntity> trainingpoints) {
                this.trainingpoints = trainingpoints;
            }

            public void setEquipments(List<EquipmentsEntity> equipments) {
                this.equipments = equipments;
            }

            public void setTags(List<?> tags) {
                this.tags = tags;
            }

            public String get_id() {
                return _id;
            }

            public String getName() {
                return name;
            }

            public int getDifficulty() {
                return difficulty;
            }

            public int getPioneer() {
                return pioneer;
            }

            public int getDays() {
                return days;
            }

            public String getPicture() {
                return picture;
            }

            public List<TrainingpointsEntity> getTrainingpoints() {
                return trainingpoints;
            }

            public List<EquipmentsEntity> getEquipments() {
                return equipments;
            }

            public List<?> getTags() {
                return tags;
            }

            public class TrainingpointsEntity {
                private String _id;
                private String name;
                private String created;
                private String id;

                public void set_id(String _id) {
                    this._id = _id;
                }

                public void setName(String name) {
                    this.name = name;
                }

                public void setCreated(String created) {
                    this.created = created;
                }

                public void setId(String id) {
                    this.id = id;
                }

                public String get_id() {
                    return _id;
                }

                public String getName() {
                    return name;
                }

                public String getCreated() {
                    return created;
                }

                public String getId() {
                    return id;
                }
            }

            public class EquipmentsEntity {
                private String _id;
                private String name;
                private String created;
                private String id;

                public void set_id(String _id) {
                    this._id = _id;
                }

                public void setName(String name) {
                    this.name = name;
                }

                public void setCreated(String created) {
                    this.created = created;
                }

                public void setId(String id) {
                    this.id = id;
                }

                public String get_id() {
                    return _id;
                }

                public String getName() {
                    return name;
                }

                public String getCreated() {
                    return created;
                }

                public String getId() {
                    return id;
                }
            }
        }
    }
}
